package com.jinglin.web.controller;
import com.jinglin.controller.ABaseController;
import com.jinglin.entity.po.CategoryInfo;
import com.jinglin.entity.vo.ResponseVO;
import com.jinglin.service.CategoryInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/category")
public class CategoryController extends ABaseController {
    @Autowired
    private CategoryInfoService categoryInfoService;
    @RequestMapping("/loadAllCategory")
    public ResponseVO loadAllCategory(){
        List<CategoryInfo> list = categoryInfoService.getCategoryList();
        return getSuccessResponseVO(list);
    }

}
